import request from '@/utils/request'

// 查询运抵报告列表
export function listList(query) {
  return request({
    url: '/kmwlpts/arrival/list',
    method: 'get',
    params: query
  })
}

// 查询运抵报告详细
export function getList(billNo) {
  return request({
    url: '/kmwlpts/arrival/' + billNo,
    method: 'get'
  })
}

// 新增运抵报告
export function addList(data) {
  return request({
    url: '/kmwlpts/arrival',
    method: 'post',
    data: data
  })
}

// 修改运抵报告
export function updateList(data) {
  return request({
    url: '/kmwlpts/arrival',
    method: 'put',
    data: data
  })
}

// 删除运抵报告
export function delList(billNo) {
  return request({
    url: '/kmwlpts/arrival/' + billNo,
    method: 'delete'
  })
}

// 导出运抵报告
export function exportList(query) {
  return request({
    url: '/kmwlpts/arrival/export',
    method: 'get',
    params: query
  })
}
